﻿using System.Collections.Generic;

namespace Projektanker.Icons.Avalonia.FontAwesome
{
    internal partial class FontAwesomeIconKey
    {
        private static readonly Dictionary<string, string> _legacyToVersion6 = new()
        {
            ["ad"] = "rectangle-ad",
            ["adjust"] = "circle-half-stroke",
            ["air-freshener"] = "spray-can-sparkles",
            ["allergies"] = "hand-dots",
            ["ambulance"] = "truck-medical",
            ["american-sign-language-interpreting"] = "hands-asl-interpreting",
            ["angle-double-down"] = "angles-down",
            ["angle-double-left"] = "angles-left",
            ["angle-double-right"] = "angles-right",
            ["angle-double-up"] = "angles-up",
            ["angry"] = "face-angry",
            ["apple-alt"] = "apple-whole",
            ["archive"] = "box-archive",
            ["arrow-alt-circle-down"] = "circle-down",
            ["arrow-alt-circle-left"] = "circle-left",
            ["arrow-alt-circle-right"] = "circle-right",
            ["arrow-alt-circle-up"] = "circle-up",
            ["arrow-circle-down"] = "circle-arrow-down",
            ["arrow-circle-left"] = "circle-arrow-left",
            ["arrow-circle-right"] = "circle-arrow-right",
            ["arrow-circle-up"] = "circle-arrow-up",
            ["arrows"] = "arrows-up-down-left-right",
            ["arrows-alt"] = "up-down-left-right",
            ["arrows-alt-h"] = "left-right",
            ["arrows-alt-v"] = "up-down",
            ["arrows-h"] = "arrows-left-right",
            ["arrows-v"] = "arrows-up-down",
            ["assistive-listening-systems"] = "ear-listen",
            ["atlas"] = "book-atlas",
            ["backspace"] = "delete-left",
            ["balance-scale"] = "scale-balanced",
            ["balance-scale-left"] = "scale-unbalanced",
            ["balance-scale-right"] = "scale-unbalanced-flip",
            ["band-aid"] = "bandage",
            ["baseball-ball"] = "baseball",
            ["basketball-ball"] = "basketball",
            ["beer"] = "beer-mug-empty",
            ["bible"] = "book-bible",
            ["biking"] = "person-biking",
            ["birthday-cake"] = "cake-candles",
            ["blind"] = "person-walking-with-cane",
            ["book-dead"] = "book-skull",
            ["book-reader"] = "book-open-reader",
            ["border-style"] = "border-top-left",
            ["boxes"] = "boxes-stacked",
            ["boxes-alt"] = "boxes-stacked",
            ["broadcast-tower"] = "tower-broadcast",
            ["burn"] = "fire-flame-simple",
            ["bus-alt"] = "bus-simple",
            ["calendar-alt"] = "calendar-days",
            ["calendar-times"] = "calendar-xmark",
            ["camera-alt"] = "camera",
            ["car-alt"] = "car-rear",
            ["caret-square-down"] = "square-caret-down",
            ["caret-square-left"] = "square-caret-left",
            ["caret-square-right"] = "square-caret-right",
            ["caret-square-up"] = "square-caret-up",
            ["chalkboard-teacher"] = "chalkboard-user",
            ["check-circle"] = "circle-check",
            ["check-square"] = "square-check",
            ["chevron-circle-down"] = "circle-chevron-down",
            ["chevron-circle-left"] = "circle-chevron-left",
            ["chevron-circle-right"] = "circle-chevron-right",
            ["chevron-circle-up"] = "circle-chevron-up",
            ["clinic-medical"] = "house-chimney-medical",
            ["cloud-download"] = "cloud-arrow-down",
            ["cloud-download-alt"] = "cloud-arrow-down",
            ["cloud-upload"] = "cloud-arrow-up",
            ["cloud-upload-alt"] = "cloud-arrow-up",
            ["cocktail"] = "martini-glass-citrus",
            ["coffee"] = "mug-saucer",
            ["cog"] = "gear",
            ["cogs"] = "gears",
            ["columns"] = "table-columns",
            ["comment-alt"] = "message",
            ["compress-alt"] = "down-left-and-up-right-to-center",
            ["compress-arrows-alt"] = "minimize",
            ["concierge-bell"] = "bell-concierge",
            ["crop-alt"] = "crop-simple",
            ["cut"] = "scissors",
            ["deaf"] = "ear-deaf",
            ["desktop-alt"] = "desktop",
            ["diagnoses"] = "person-dots-from-line",
            ["digging"] = "person-digging",
            ["digital-tachograph"] = "tachograph-digital",
            ["directions"] = "diamond-turn-right",
            ["dizzy"] = "face-dizzy",
            ["dolly-flatbed"] = "cart-flatbed",
            ["donate"] = "circle-dollar-to-slot",
            ["dot-circle"] = "circle-dot",
            ["drafting-compass"] = "compass-drafting",
            ["edit"] = "pen-to-square",
            ["ellipsis-h"] = "ellipsis",
            ["ellipsis-v"] = "ellipsis-vertical",
            ["envelope-square"] = "square-envelope",
            ["exchange"] = "arrow-right-arrow-left",
            ["exchange-alt"] = "right-left",
            ["exclamation-circle"] = "circle-exclamation",
            ["exclamation-triangle"] = "triangle-exclamation",
            ["expand-alt"] = "up-right-and-down-left-from-center",
            ["expand-arrows-alt"] = "maximize",
            ["external-link"] = "arrow-up-right-from-square",
            ["external-link-alt"] = "up-right-from-square",
            ["external-link-square"] = "square-arrow-up-right",
            ["external-link-square-alt"] = "square-up-right",
            ["fast-backward"] = "backward-fast",
            ["fast-forward"] = "forward-fast",
            ["feather-alt"] = "feather-pointed",
            ["female"] = "person-dress",
            ["fighter-jet"] = "jet-fighter",
            ["file-alt"] = "file-lines",
            ["file-archive"] = "file-zipper",
            ["file-download"] = "file-arrow-down",
            ["file-edit"] = "file-pen",
            ["file-medical-alt"] = "file-waveform",
            ["file-upload"] = "file-arrow-up",
            ["fire-alt"] = "fire-flame-curved",
            ["first-aid"] = "kit-medical",
            ["fist-raised"] = "hand-fist",
            ["flushed"] = "face-flushed",
            ["font-awesome-alt"] = "square-font-awesome-stroke",
            ["font-awesome-flag"] = "font-awesome",
            ["font-awesome-logo-full"] = "font-awesome",
            ["football-ball"] = "football",
            ["frown"] = "face-frown",
            ["frown-open"] = "face-frown-open",
            ["funnel-dollar"] = "filter-circle-dollar",
            ["glass-cheers"] = "champagne-glasses",
            ["glass-martini"] = "martini-glass-empty",
            ["glass-martini-alt"] = "martini-glass",
            ["glass-whiskey"] = "whiskey-glass",
            ["globe-africa"] = "earth-africa",
            ["globe-americas"] = "earth-americas",
            ["globe-asia"] = "earth-asia",
            ["globe-europe"] = "earth-europe",
            ["golf-ball"] = "golf-ball-tee",
            ["grimace"] = "face-grimace",
            ["grin"] = "face-grin",
            ["grin-alt"] = "face-grin-wide",
            ["grin-beam"] = "face-grin-beam",
            ["grin-beam-sweat"] = "face-grin-beam-sweat",
            ["grin-hearts"] = "face-grin-hearts",
            ["grin-squint"] = "face-grin-squint",
            ["grin-squint-tears"] = "face-grin-squint-tears",
            ["grin-stars"] = "face-grin-stars",
            ["grin-tears"] = "face-grin-tears",
            ["grin-tongue"] = "face-grin-tongue",
            ["grin-tongue-squint"] = "face-grin-tongue-squint",
            ["grin-tongue-wink"] = "face-grin-tongue-wink",
            ["grin-wink"] = "face-grin-wink",
            ["grip-horizontal"] = "grip",
            ["h-square"] = "square-h",
            ["hamburger"] = "burger",
            ["hand-holding-usd"] = "hand-holding-dollar",
            ["hand-holding-water"] = "hand-holding-droplet",
            ["hand-paper"] = "hand",
            ["hand-rock"] = "hand-back-fist",
            ["hands-helping"] = "handshake-angle",
            ["hands-wash"] = "hands-bubbles",
            ["handshake-alt"] = "handshake-simple",
            ["handshake-alt-slash"] = "handshake-simple-slash",
            ["hard-hat"] = "helmet-safety",
            ["hdd"] = "hard-drive",
            ["headphones-alt"] = "headphones-simple",
            ["heart-broken"] = "heart-crack",
            ["heartbeat"] = "heart-pulse",
            ["hiking"] = "person-hiking",
            ["history"] = "clock-rotate-left",
            ["home"] = "house",
            ["home-alt"] = "house",
            ["home-lg"] = "house-chimney",
            ["home-lg-alt"] = "house",
            ["hospital-alt"] = "hospital",
            ["hospital-symbol"] = "circle-h",
            ["hot-tub"] = "hot-tub-person",
            ["hourglass-half"] = "hourglass",
            ["house-damage"] = "house-chimney-crack",
            ["hryvnia"] = "hryvnia-sign",
            ["id-card-alt"] = "id-card-clip",
            ["info-circle"] = "circle-info",
            ["innosoft"] = "42-group",
            ["journal-whills"] = "book-journal-whills",
            ["kiss"] = "face-kiss",
            ["kiss-beam"] = "face-kiss-beam",
            ["kiss-wink-heart"] = "face-kiss-wink-heart",
            ["landmark-alt"] = "landmark-dome",
            ["laptop-house"] = "house-laptop",
            ["laugh"] = "face-laugh",
            ["laugh-beam"] = "face-laugh-beam",
            ["laugh-squint"] = "face-laugh-squint",
            ["laugh-wink"] = "face-laugh-wink",
            ["level-down"] = "arrow-turn-down",
            ["level-down-alt"] = "turn-down",
            ["level-up"] = "arrow-turn-up",
            ["level-up-alt"] = "turn-up",
            ["list-alt"] = "rectangle-list",
            ["location"] = "location-crosshairs",
            ["long-arrow-alt-down"] = "down-long",
            ["long-arrow-alt-left"] = "left-long",
            ["long-arrow-alt-right"] = "right-long",
            ["long-arrow-alt-up"] = "up-long",
            ["long-arrow-down"] = "arrow-down-long",
            ["long-arrow-left"] = "arrow-left-long",
            ["long-arrow-right"] = "arrow-right-long",
            ["long-arrow-up"] = "arrow-up-long",
            ["low-vision"] = "eye-low-vision",
            ["luggage-cart"] = "cart-flatbed-suitcase",
            ["magic"] = "wand-magic",
            ["mail-bulk"] = "envelopes-bulk",
            ["male"] = "person",
            ["map-marked"] = "map-location",
            ["map-marked-alt"] = "map-location-dot",
            ["map-marker"] = "location-pin",
            ["map-marker-alt"] = "location-dot",
            ["map-signs"] = "signs-post",
            ["mars-stroke-h"] = "mars-stroke-right",
            ["mars-stroke-v"] = "mars-stroke-up",
            ["medium-m"] = "medium",
            ["medkit"] = "suitcase-medical",
            ["meh"] = "face-meh",
            ["meh-blank"] = "face-meh-blank",
            ["meh-rolling-eyes"] = "face-rolling-eyes",
            ["microphone-alt"] = "microphone-lines",
            ["microphone-alt-slash"] = "microphone-lines-slash",
            ["minus-circle"] = "circle-minus",
            ["minus-square"] = "square-minus",
            ["mobile-alt"] = "mobile-screen-button",
            ["mobile-android"] = "mobile",
            ["mobile-android-alt"] = "mobile-screen",
            ["money-bill-alt"] = "money-bill-1",
            ["money-bill-wave-alt"] = "money-bill-1-wave",
            ["money-check-alt"] = "money-check-dollar",
            ["mouse"] = "computer-mouse",
            ["mouse-pointer"] = "arrow-pointer",
            ["paint-brush"] = "paintbrush",
            ["parking"] = "square-parking",
            ["pastafarianism"] = "spaghetti-monster-flying",
            ["pause-circle"] = "circle-pause",
            ["pen-alt"] = "pen-clip",
            ["pen-square"] = "square-pen",
            ["pencil-alt"] = "pencil",
            ["pencil-ruler"] = "pen-ruler",
            ["people-arrows"] = "people-arrows-left-right",
            ["percentage"] = "percent",
            ["phone-alt"] = "phone-flip",
            ["phone-square"] = "square-phone",
            ["phone-square-alt"] = "square-phone-flip",
            ["photo-video"] = "photo-film",
            ["play-circle"] = "circle-play",
            ["plus-circle"] = "circle-plus",
            ["plus-square"] = "square-plus",
            ["poll"] = "square-poll-vertical",
            ["poll-h"] = "square-poll-horizontal",
            ["portrait"] = "image-portrait",
            ["pound-sign"] = "sterling-sign",
            ["pray"] = "person-praying",
            ["praying-hands"] = "hands-praying",
            ["prescription-bottle-alt"] = "prescription-bottle-medical",
            ["procedures"] = "bed-pulse",
            ["project-diagram"] = "diagram-project",
            ["question-circle"] = "circle-question",
            ["quran"] = "book-quran",
            ["radiation-alt"] = "circle-radiation",
            ["random"] = "shuffle",
            ["redo"] = "arrow-rotate-right",
            ["redo-alt"] = "rotate-right",
            ["remove-format"] = "text-slash",
            ["rss-square"] = "square-rss",
            ["running"] = "person-running",
            ["sad-cry"] = "face-sad-cry",
            ["sad-tear"] = "face-sad-tear",
            ["save"] = "floppy-disk",
            ["search"] = "magnifying-glass",
            ["search-dollar"] = "magnifying-glass-dollar",
            ["search-location"] = "magnifying-glass-location",
            ["search-minus"] = "magnifying-glass-minus",
            ["search-plus"] = "magnifying-glass-plus",
            ["share-alt"] = "share-nodes",
            ["share-alt-square"] = "square-share-nodes",
            ["share-square"] = "share-from-square",
            ["shipping-fast"] = "truck-fast",
            ["shopping-bag"] = "bag-shopping",
            ["shopping-basket"] = "basket-shopping",
            ["shopping-cart"] = "cart-shopping",
            ["shuttle-van"] = "van-shuttle",
            ["sign"] = "sign-hanging",
            ["sign-in"] = "arrow-right-to-bracket",
            ["sign-in-alt"] = "right-to-bracket",
            ["sign-language"] = "hands",
            ["sign-out"] = "arrow-right-from-bracket",
            ["sign-out-alt"] = "right-from-bracket",
            ["skating"] = "person-skating",
            ["skiing"] = "person-skiing",
            ["skiing-nordic"] = "person-skiing-nordic",
            ["slack-hash"] = "slack",
            ["sliders-h"] = "sliders",
            ["smile"] = "face-smile",
            ["smile-beam"] = "face-smile-beam",
            ["smile-wink"] = "face-smile-wink",
            ["smoking-ban"] = "ban-smoking",
            ["sms"] = "comment-sms",
            ["snapchat-ghost"] = "snapchat",
            ["snowboarding"] = "person-snowboarding",
            ["sort-alpha-down"] = "arrow-down-a-z",
            ["sort-alpha-down-alt"] = "arrow-down-z-a",
            ["sort-alpha-up"] = "arrow-up-a-z",
            ["sort-alpha-up-alt"] = "arrow-up-z-a",
            ["sort-amount-down"] = "arrow-down-wide-short",
            ["sort-amount-down-alt"] = "arrow-down-short-wide",
            ["sort-amount-up"] = "arrow-up-wide-short",
            ["sort-amount-up-alt"] = "arrow-up-short-wide",
            ["sort-numeric-down"] = "arrow-down-1-9",
            ["sort-numeric-down-alt"] = "arrow-down-9-1",
            ["sort-numeric-up"] = "arrow-up-1-9",
            ["sort-numeric-up-alt"] = "arrow-up-9-1",
            ["space-shuttle"] = "shuttle-space",
            ["square-root-alt"] = "square-root-variable",
            ["star-half-alt"] = "star-half-stroke",
            ["step-backward"] = "backward-step",
            ["step-forward"] = "forward-step",
            ["sticky-note"] = "note-sticky",
            ["stop-circle"] = "circle-stop",
            ["store-alt"] = "shop",
            ["store-alt-slash"] = "shop-slash",
            ["stream"] = "bars-staggered",
            ["subway"] = "train-subway",
            ["surprise"] = "face-surprise",
            ["swimmer"] = "person-swimming",
            ["swimming-pool"] = "water-ladder",
            ["sync"] = "arrows-rotate",
            ["sync-alt"] = "rotate",
            ["table-tennis"] = "table-tennis-paddle-ball",
            ["tablet-alt"] = "tablet-screen-button",
            ["tablet-android"] = "tablet",
            ["tachometer"] = "gauge-simple",
            ["tachometer-alt"] = "gauge",
            ["tachometer-alt-fast"] = "gauge",
            ["tasks"] = "list-check",
            ["tasks-alt"] = "bars-progress",
            ["telegram-plane"] = "telegram",
            ["temperature-down"] = "temperature-arrow-down",
            ["temperature-up"] = "temperature-arrow-up",
            ["tenge"] = "tenge-sign",
            ["th"] = "table-cells",
            ["th-large"] = "table-cells-large",
            ["th-list"] = "table-list",
            ["theater-masks"] = "masks-theater",
            ["thermometer-empty"] = "temperature-empty",
            ["thermometer-full"] = "temperature-full",
            ["thermometer-half"] = "temperature-half",
            ["thermometer-quarter"] = "temperature-quarter",
            ["thermometer-three-quarters"] = "temperature-three-quarters",
            ["thunderstorm"] = "cloud-bolt",
            ["ticket-alt"] = "ticket-simple",
            ["times"] = "xmark",
            ["times-circle"] = "circle-xmark",
            ["times-square"] = "square-xmark",
            ["tint"] = "droplet",
            ["tint-slash"] = "droplet-slash",
            ["tired"] = "face-tired",
            ["tools"] = "screwdriver-wrench",
            ["torah"] = "scroll-torah",
            ["tram"] = "train-tram",
            ["transgender-alt"] = "transgender",
            ["trash-alt"] = "trash-can",
            ["trash-restore"] = "trash-arrow-up",
            ["trash-restore-alt"] = "trash-can-arrow-up",
            ["truck-loading"] = "truck-ramp-box",
            ["tshirt"] = "shirt",
            ["tv-alt"] = "tv",
            ["undo"] = "arrow-rotate-left",
            ["undo-alt"] = "rotate-left",
            ["university"] = "building-columns",
            ["unlink"] = "link-slash",
            ["unlock-alt"] = "unlock-keyhole",
            ["user-alt"] = "user-large",
            ["user-alt-slash"] = "user-large-slash",
            ["user-circle"] = "circle-user",
            ["user-cog"] = "user-gear",
            ["user-edit"] = "user-pen",
            ["user-friends"] = "user-group",
            ["user-md"] = "user-doctor",
            ["user-times"] = "user-xmark",
            ["users-cog"] = "users-gear",
            ["utensil-spoon"] = "spoon",
            ["volleyball-ball"] = "volleyball",
            ["volume-down"] = "volume-low",
            ["volume-mute"] = "volume-xmark",
            ["volume-up"] = "volume-high",
            ["vote-yea"] = "check-to-slot",
            ["walking"] = "person-walking",
            ["weight"] = "weight-scale",
            ["window-close"] = "rectangle-xmark",
        };

        private static string SupportLegacy(string value)
        {
            return _legacyToVersion6.TryGetValue(value, out var result)
                ? result
                : value;
        }
    }
}